def E(t):
    for b in range(2,int(t**0.5)+t):
        if t%b==0:
            break
        else:
            print("Простое")
            break
words = ['zero','one','two','three','four','five','six','seven','eight','nine']
a = input().split()
if len(a)!=3:
    print("Wrong input!")
else:
    for i in range (3):
        if a[i] not in words:
            print("Wrong input!")
            break
for i in range(10):
    if a[0] == words[i]:
        x = i*100
    if a[1] == words[i]:
        y = i*10
    if a[2] == words[i]:
        z = i*1
s = x+y+z
E(s)
